package com.baiwei.vpnapi.entity.respentity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

/**
 * @program: vpnapi
 * @description: 最新有效套餐返回实体类
 * @author: Mr. Stone
 * @create: 2020-03-06 10:16
 **/
@Data
public class AvailablePackage {
    @JsonIgnore
    private Integer itemId;
    private String packageId;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date endTime;
    private Integer status;
    private String packageName;
    private Integer deviceCount;

    public Date getNowTime() {
        return new Date();
    }

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date nowTime;
    private Double price;
    private Integer priceUnit;
    private Integer duration;
    @JsonIgnore
    private String englishName;
    @JsonIgnore
    private String taiwanName;
    private Integer serverId;

}
